import Taro, { Component } from '@tarojs/taro'
import { View, Button, Text } from '@tarojs/components'
import Head from "./components/head/head"
import Food from "./components/food/food"

import './index.scss'
class Index extends Component {
  config = {
    navigationBarTitleText: '首页'
  }

  componentWillReceiveProps(nextProps) {
    console.log(this.props, nextProps)
  }


  render() {
    return (
      <View>
        <Head />
        <Food />
      </View>
    )
  }
}

export default Index
